package com.hxzy.shop.marketing.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.common.dto.marketing.resp.DistributionDrugResp;
import com.hxzy.shop.entity.DistributionDrug;
import com.hxzy.shop.marketing.dto.resp.DistributionDrugListResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【distribution_drug】的数据库操作Mapper
* @createDate 2023-08-03 20:00:10
* @Entity com.hxzy.shop.marketing.DistributionDrug
*/
public interface DistributionDrugMapper extends BaseMapper<DistributionDrug> {

    List<DistributionDrugListResp> distributionDrugList(@Param("drugName") String drugName,
                                                        @Param("barCode")String barCode,
                                                        @Param("drugCode")String drugCode,
                                                        @Param("parentClassifiedManagementId")Long parentClassifiedManagementId,
                                                        @Param("sonClassifiedManagementId")Long sonClassifiedManagementId,
                                                        @Param("prescriptionDrug")Boolean prescriptionDrug);

    List<DistributionDrugResp> selectNoSelectDrug(@Param("drugName") String drugName,
                                                  @Param("barCode")String barCode,
                                                  @Param("drugCode")String drugCode,
                                                  @Param("parentClassifiedManagementId")Long parentClassifiedManagementId,
                                                  @Param("sonClassifiedManagementId")Long sonClassifiedManagementId,
                                                  @Param("list")Long[] list,
                                                  @Param("codeList") String[] split);
}




